<?php

class Nucleo_Controller_Helper{
	private $helpers = array();
	
	/**
	 * Add attributes for class Helper
	 */
	public function __set($name,$value){ 
		if(!isset($this->helpers[$name])){
			$this->helpers[$name] = $value;
		}else
			throw new Nucleo_Exception_Sifra('032',true);
	}
	
	public function __get($name){
		if(isset($this->helpers[$name])){
			return $this->helpers[$name];
		}else{
			throw new Nucleo_Exception_Sifra('034',true);
		}
	}
	
	public function exist($name){
		return isset($this->helpers[$name]);
	}
}